package com.len.service.impl;

import com.len.base.BaseMapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.TQuotationDesign;
import com.len.mapper.QuotationDesignMapper;
import com.len.service.QuotationDesignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuotationDesignServiceImpl extends BaseServiceImpl<TQuotationDesign,String> implements
        QuotationDesignService {

    @Autowired
    private QuotationDesignMapper quotationDesignMapper;
    @Override
    public BaseMapper<TQuotationDesign, String> getMappser() {
        return quotationDesignMapper;
    }

    public void delAllByOrderNo(String orderNo){
        quotationDesignMapper.delAllByOrderNo(orderNo);
    }

    public List<TQuotationDesign> selectAllByOrderNo(String orderNo){
        return quotationDesignMapper.selectAllByOrderNo(orderNo);
    }
}
